GtkWidgetPath: Don't forget to copy the state
authorMatthias Clasen <mclasen@redhat.com>
Tue, 22 Jul 2014 00:35:59 +0000 (20:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 22 Jul 2014 00:35:59 +0000 (20:35 -0400)
gtk_widget_path_copy was not copying the state of each element.
This was showing in "GtkRadioButton:active GtkLabel" not matching
in stack switchers.

gtk/gtkwidgetpath.c

index ba94a7fb2eeadb10501f6b2e6dfb91ca98021c7e..b33d23bd8b6749379ccbea753ccee9155c4e7be1 100644 (file)
@@ -132,6 +132,7 @@ gtk_path_element_copy (GtkPathElement       *dest,
 
   dest->type = src->type;
   dest->name = src->name;
+  dest->state = src->state;
   if (src->siblings)
     dest->siblings = gtk_widget_path_ref (src->siblings);
   dest->sibling_index = src->sibling_index;